<!--{eval $_TPL['titles'] = array($mtag['tagname'], $mtag['title'], '活动');}-->
<!--{eval $_TPL['nosidebar']=1;}-->
<!--{template header}-->

<link href="template/voone/quan.css" rel="stylesheet" type="text/css" />

<DIV class="bodybox">
<!--{template m_header}-->

<div class="tabs_header" style="border-bottom:1px dashed #333; height:25px">
<div class="r_option">
<a href="cp.php?ac=share&type=mtag&id=$mtag[tagid]" id="a_share" class="a_share" onclick="ajaxmenu(event, this.id, 1)">分享</a>
<a href="admincp.php?ac=mtag&tagid=$mtag[tagid]" target="_blank">管理</a>
	<a href="cp.php?ac=common&op=report&idtype=tagid&id=$mtag[tagid]" id="a_report" onclick="ajaxmenu(event, this.id, 1)">举报</a>
	</div>	
	
	<ul class="groupmenu">
  <li><a href="javascript:;"><span>首页</span></a> </li>
 
<li><a href="space.php?do=mtag&tagid=$mtag[tagid]&view=list"><span>讨论区</span></a></li>
<li><a href="space.php?do=mtag&tagid=$mtag[tagid]&view=digest"><span>精华区</span></a></li>
		<!--{if $eventnum}-->
<li class="active"><a href="space.php?do=mtag&tagid=$mtag[tagid]&view=event"><span>群组活动</span></a></li>
		<!--{/if}-->
<li><a href="space.php?do=mtag&tagid=$mtag[tagid]&view=member"><span>成员列表</span></a></li>  
</LI>
</UL>
</div>


<DIV class="groupbbsbox">

<!--{if !empty($eventlist)}-->
<div class="event_list">
	<ol>
		<!--{eval $hiddecount = 0}-->
		<!--{loop $eventlist $key $event}-->
		<!--{if $event[uid] != $_SGLOBAL[supe_uid] && ($event[grade]==0 || $event[public]==0)}-->
		<!--{eval $hiddencount = $hiddencount + 1}-->
		<!--{else}-->
		<li>
			<div class="event_icon">
				<a href="space.php?do=event&id=$event[eventid]"><img class="poster_pre" src="$event[pic]" alt="$event[title]" onerror="this.src='$_SGLOBAL[eventclass][$event[classid]][poster]'"></a>
			</div>
			<div class="event_content">
				<h4 class="event_title"><a href="space.php?do=event&id=$event[eventid]">$event[title]</a><span class="gray">[<!--{$_SGLOBAL[eventclass][$event[classid]][classname]}-->]</span></h4>
				<ul>
					<li>
						<span class="gray">活动时间:</span> 	<!--{eval echo sgmdate("n月d日 G:i", $event[starttime])}--> - <!--{eval echo sgmdate("n月d日 G:i", $event[endtime])}-->
						<!--{if $event[grade] == 0}-->
						<span class="event_state"> 待审核</span>
						<!--{/if}-->
						<!--{if $event[endtime]<$_SGLOBAL[timestamp]}-->
						<span class="event_state"> 已结束</span>
						<!--{elseif $event[deadline]<$_SGLOBAL[timestamp]}-->
						<span class="event_state"> 报名截止</span>
						<!--{/if}-->						
					</li>
					<li><span class="gray">活动地点:</span>
						<a href="space.php?uid=$_GET[uid]&do=event&view=$view&type=$type&classid=$_GET[classid]&province=$event[province]&date=$_GET[date]">$event[province]</a>
						<a href="space.php?uid=$_GET[uid]&do=event&view=$view&type=$type&classid=$_GET[classid]&province=$event[province]&city=$event[city]&date=$_GET[date]">$event[city]</a>
						$event[location]
					</li>
					<li><span class="gray">发起人:</span> <a href="space.php?uid=$event[uid]">$_SN[$event[uid]]</a></li>
					<li style="margin: 5px 0 0;">$event[viewnum] 次查看&nbsp; $event[membernum] 人参加&nbsp; $event[follownum] 人关注</li>
				</ul>
			</div>
		</li>
		<!--{/if}-->
		<!--{/loop}-->
	</ol>
	<!--{if $hiddencount}-->
	<div>本页有 $hiddencount 个活动因隐私设置而隐藏</div>
	<!--{/if}-->
	<div class="page">$multi</div>
</div>
<!--{else}-->
<div class="c_form">	
	现在还没有群组活动。
</div>
<!--{/if}-->
</div>


<DIV class="groupr">
<!--{if empty($mtag['ismember']) && $mtag['joinperm'] < 2}-->
<DIV class=groupjoin><a href="cp.php?ac=mtag&op=join&tagid=$mtag[tagid]" id="a_mtag_join_$mtag[tagid]" onclick="ajaxmenu(event, this.id, 99999)"><IMG height=57 alt="" 
src="template/voone/image/button_groupjoin.gif" width=207></A></DIV>

			<!--{elseif $mtag['allowpost']}-->
<DIV id="groupmanageinfo">
<DIV class="rbtop">
<DIV></DIV></DIV>
<DIV class="rbcontent">
<DL>
  <DT><!--{avatar($_SGLOBAL[supe_uid],small)}-->
</DT>
  <DD class="groupmanagename">Hi! <B><a href="space.php?do=home">{$_SN[$_SGLOBAL[supe_uid]]}</a></B> 
  </DD>
  <DD class="groupmanageinfo">我们已经恭候多时了！ </DD></DL></DIV></DIV>
<DIV id="groupmanagebox">
<DIV class="rbcontent">

<li><SPAN><IMG height=13 src="template/voone/image/icon_addfriend.gif" width=13></SPAN><a href="cp.php?ac=thread&tagid=$mtag[tagid]">发起话题</a></li>
	
<!--{if $mtag['grade'] >= 8}-->
<li><SPAN><IMG height=13 src="template/voone/image/icon_addtopic.gif" width=13></SPAN><a href="cp.php?ac=mtag&op=manage&tagid=$mtag[tagid]&subop=base">群组设置</a></li>
			<!--{/if}-->
			<!--{if $mtag['grade'] >= 8}-->
<li><SPAN><IMG height=13 src="template/voone/image/icon_addmessage.gif" width=13></SPAN><a href="cp.php?ac=mtag&op=manage&tagid=$mtag[tagid]&subop=members">成员管理</a></li>

<li><SPAN><IMG height=13 src="template/voone/image/icon_addlink.gif" width=13></SPAN><a href="admincp.php?ac=thread&&perpage=20&tagid=$mtag[tagid]&searchsubmit=1" target="_blank">话题管理</a></li>
<li><SPAN><IMG height=13 src="template/voone/image/icon_addlink.gif" width=13></SPAN><a href="admincp.php?ac=post&&perpage=20&tagid=$mtag[tagid]&searchsubmit=1">回帖管理</a></li>

		<!--{elseif $mtag['ismember'] && !$mtag['closeapply']}-->
			<li><SPAN><IMG height=13 src="template/voone/image/icon_addlink.gif" width=13></SPAN><a href="cp.php?ac=mtag&op=apply&tagid=$mtag[tagid]" id="a_apply" onclick="ajaxmenu(event, this.id, 99999)">群主申请</a></li>
			<!--{/if}-->
			<!--{if $mtag['allowinvite']}-->
			<li><SPAN><IMG height=13 src="template/voone/image/icon_editmember.gif" width=13></SPAN><a href="cp.php?ac=mtag&op=manage&tagid=$mtag[tagid]&subop=invite">邀请好友</a></li>
			<!--{/if}-->
			<!--{if $mtag['ismember']}-->
			<li><SPAN><IMG height=13 src="template/voone/image/icon_rewriteinfo.gif" width=13></SPAN><a href="cp.php?ac=mtag&op=out&tagid=$mtag[tagid]" id="a_ignore_top" onclick="ajaxmenu(event, this.id, 99999)">退出群组</a></li>
			<!--{/if}-->
<DIV class="clear"></DIV></DIV>
<DIV class="rbbot">
<DIV></DIV></DIV></DIV>

			<!--{/if}-->

</div></div>
<!--{template footer}-->
